<html>
<head>
<title>Hello world</title>

</head>
<body>
<h1>HI</h1>
<ol>
<?php foreach($accounts as $account):?>
<li><?php echo $account->fullname;?></li>
<?php endforeach;?>

<hr />
<?php echo anchor('accounts/create','Create new account');?>
<?php echo form_open('accounts/create'); ?>
Username: <input type="text" name="username" /><br />
Pass: <input type="password" name="password" /><br />
Fullname: <input type="text" name="fullname" /><br />
Email: <input type="text" name="email" /><br />
<?php echo form_hidden('birthday',date('Y-d-m',time())); ?>
Gender:<select name="sex">
<option value="0">Nam</option>
<option value="1">Nu</option>
</select><br />
Cap do:<select name="accountType">
<option value="1">Admin</option>
<option value="2">Editor</option>
</select>
<br />
<input type="submit" value="Submit" />

</form>

</ol>
</body>
</html>